import {defineStore} from "pinia";
import {onMounted, ref} from "vue";
import {getBanner} from "@/apis/slot.js";

export const getBannerStore = defineStore("banner",()=>{
    const bannerList = ref({})
    const banner = async () =>{
        const res = await getBanner()
        bannerList.value = res.data
    }
    onMounted(() => banner())
    return {banner,bannerList}
    }
)